import React from "react";
import lazyLoad from "../../routes/utils/lazyLoad";
import { CommandType } from "../command";
import ComponentOutputType = Terminal.ComponentOutputType;
const hotCommand:CommandType = {
    func:'hot',
    name:'测试',
    alias:[],
    params:[
        {
            key: "热榜类别",
            desc: "要查询的热榜",
            required: false,
        },
    ],
    options: [],
    async action(options, terminal) {
        const output : ComponentOutputType = {
            type:'component',
            component:lazyLoad(React.lazy(()=> import('../hot/HotBox'))),
            props:{}
        };
        terminal.writeResult(output);
    },        
};

export default hotCommand;